﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace sy3_4
{
    public class Vehicle
    {
        protected int wheelCount;
        protected double weight;

        public Vehicle() { }
        public Vehicle(int wheelCount, double weight)
        {
            this.wheelCount = wheelCount;
            this.weight = weight;
        }

        public void SetVehicle(int wheelCount, double weight)
        {
            this.wheelCount = wheelCount;
            this.weight = weight;
        }

        public string GetVehicle()
        {
            return $"车轮数：{wheelCount}\n车重量：{weight}吨";
        }
    }
}
